define(function(){
	function page3(){
		$.ajax({
			type:"get",
		    url:"http://127.0.0.1/XiaoZhuangWangXiangMu/json/page3.json",
		    async:true,
		    success:function(json){
			     var html="";
			  for(var attr in json){
				if(attr=="header"){
					for(var i = 0;i < json[attr].length;i ++){
						html+=`
						 <li>
									<a class="detail_r"><img  class="detail_q" src="../img/${json[attr][i].src}"/></a>
									<span class="detail_f">${json[attr][i].span}</span>
									<p class="detail_e">${json[attr][i].p}</p>
								</li>
						`
						$(".detail_u").html(html);
					}
				}
			}
		}
      })
	}
	return {
		page3 : page3
	}
})
